//
// RTL: Plugins / Bootstrap-Datepicker
//
// Version: 1.3.0
//
// --------------------------------------------------

.datepicker-dropdown {
  right: auto;
}

.datepicker {
  direction: rtl;

  table tr td span {
    float: right;
  }

  table tr td {
    &:last-child {
      border-right: 1px solid #eee;
    }

    &:first-child {
      border-right: none;
    }

    span {
      float: right;
    }
  }

  thead {
    th.prev {
      border-left: 1px solid;
      border-right: none;
      left: auto;
      right: 0;

      &:after {
        content: "\f054";
      }
    }

    th.next {
      border-right: 1px solid;
      border-left: none;
      left: 0;
      right: auto;

      &:after {
        content: "\f053";
      }
    }
  }

  > .datepicker-days thead tr:first-child th.cw + .prev {
    border-right: 1px solid;
    left: auto;
    right: $bootstrap-datepicker-col-width - 1px;
  }

  > .datepicker-days thead tr:last-child th.cw + th {
    border-left: none;
    border-right: 1px solid;
  }
}
